#ifndef TKEINDEX_H_
#define TKEINDEX_H_

#include <MAUI/Screen.h>
#include <MAUI/Layout.h>
#include <MAUI/ListBox.h>
//#include <MAUI/EditBox.h>

#include "../DAOs/DTO.h"
#include "../DAOs/RANDProcessor.h"
#include "../DAOs/STATProcessor.h"
#include "../Widgets/NativeEditBox.h"

using namespace MAUI;

class TKEIndex : public Screen, RANDListener, STATListener, NativeEditBoxListener {
public:
	TKEIndex();
	~TKEIndex();
	void setCompany(String& id, const String& name);
	void keyPressEvent(int keyCode, int nativeCode);
	void itemReceived(RANDItem& item);
	void processingComplete();
	void itemstatReceived(STATItem& item);
	void processingstatComplete();
	void pointerPressEvent(MAPoint2d point);
	void pointerReleaseEvent(MAPoint2d point);
	//void selectionChanged(Widget *widget, bool selected);
	//void show();
	void nativeEditFinished();
private:
	//void hide();
	RANDProcessor* mProcessor;
	STATProcessor* mProcessor2;

	ListBox* listBox;
	Layout* mainLayout;
	Widget* softKeys;
	Label* titleCompany;
	NativeEditBox* editbox;
	//EditBox *editbox;

	String companyid;
	String companyname;
};

#endif /* TKEINDEX_H_ */
